Fix remaining tests

In particular:

* In ngrams search tests where we were comparing the total number of
  results returned, we need to account only for the roots, because the
  total number we would be returning from the pagination would be
  higher, as it would include children, in some cases;
* In the `AcyclipTableMap` generator, the roots we generate need to be
  so (i.e. `_ne_root` and `_ne_parent` must be `Nothing`).
4 jobs for adinapoli/issue-504 in 52 minutes and 5 seconds (queued for 3 seconds)
latest
Status Job ID Name Coverage
  Cabal
passed #19294
cabal

00:25:40

 
  Stack
passed #19295
stack

00:02:30

 
  Bench
manual #19296
allowed to fail manual
bench
 
  Test
passed #19297
test

00:23:54