add BSON::ObjectId attribute serializer for Mongoid 4