Serialize BSON::ObjectId fields to string

When one of the extra attributes contain BSON::ObjectIds, the default
serialization will dump it as YAML. Instead of YAML it will output the String
representation of the BSON::ObjectId.