Add query rewrite support for where, group by and nested expressions.

You are only keeping the first find, so this is pretty inefficient as filterKeys has to loop through everything.  Why not just do `rollupColIdx.find` ?