Fix subtle bug in searchTableNgrams
This commit fixes a bug (or feature? unclear at this stage) of the `rootOf` function inside `searchTableNgrams`, which could, in some occasion, return a root which has a different `ListType`, which in turn throws off pagination.
| Name | Stage | Failure | ||
|---|---|---|---|---|
| 
failed
 | test | Test | ||
|  | ||||
| 
failed
 | docs | Test | ||
|  | ||||
| 
failed
 | deps | Test | ||
|  | ||||
