Fixed compatibility with Mongoid 4.x.

Don't merge, this will break compatibility with Mongoid 3.x.

It looks like Mongoid 4 is back to using `BSON::ObjectId` and that `Moped::BSON::ObjectId` has been removed. I am not sure how we can implement this in a way compatible with both.