Fix query qrray field with single value.

If a document has a field with an array e.g. 'x': [1, 2, 3], one should
be able to query for it with a simple query {'x': 2}.