Changing bson serialization of ids