Introduce object-queries. Correct error reporting in generic-red-row.