Make parsing strict for `geo_shape` query & filter and stricter for `common` query.

Closes #4508