Add more tests for ARRAY, ANY, WHERE and subpaths