Fixes support for startsWith in subqueries, e.g. foo/bar startsWith baz.