Don't uniq grids
precalc idmod value.
Use grid length for searchCount.
Merge branch 'cache-cxx-flatgrid' of https://github.com/mapbox/carmen into cache-cxx-flatgrid