Fixes for using IN on array properties

I'll create an Asana ticket for a nicer way to handle empty queries, since none of the ideas mentioned actually work (without lots and lots of dumb code to construct a never matching query for every possible column type), and I'm not totally sure what it should even look like. Current workaround isn't too ugly at least.

Fixes #950.

@alazier