Fixes to isMongoObject