Fix collection type query generation
Merge pull request #13 from ifesdjeen/path-1

Fix collection type query generation