Modify Query nodes to be [QueryTerm]

This paves the way to a more effective search in corpus by modifying the
internal "leaves" type of the `Query` type from a `Term` to a new type
called `QueryTerm`, which can either be an extact match or a partial
match, which can be rendered into a proper Postgres TS query via the
":*" syntax.
4 jobs for adinapoli/issue-324-part-2 in 100 minutes and 13 seconds (queued for 2 seconds)
latest
Status Job ID Name Coverage
  Cabal
passed #11828
cabal

00:45:19

 
  Stack
passed #11829
stack

00:02:25

 
  Bench
manual #11830
allowed to fail manual
bench
 
  Test
passed #11831
test

00:52:29