Ignore "$" operator when validating queries.  Fixes #649.