Speed up queries by location

This builds on the changes in #173 (so that one needs to be reviewed first)

Rewrites the search by geo entity query to a much shorter form, taking advantage of array operations on pre-computed arrays of distribution and listed / excluded populations.