feature detect correct mongoid BSON implementation