Fix stupid error in util.objWrap

When I originally wrote `objWrap`, I think I had some different use case
in mind. What we mainly use it for here is building up '$or' queries, so
I've fixed it to work for that use case and added a test for it.