Refactor: compiled selector is a class

For now this just lets us do isGeoQuery as something other than
"reparse", but this should have some better effects later.