Casbah: added isInstanceOf -> $type
Casbah: added `doc.contains(key)` -> `key $exists true`, `!doc.contains(key)` -> `key $exists false`