Support complex queries on _id

Enables string IDs in array/object-based queries to be casted to ObjectID. Tests included for $in/$nin and $ne.