Support boolean source '$exists foo.bar.baz'

The seemingly unrelated test change is to prevent an exception in
BSON.serialize.
(pushed fix)