serialize_ids call methods on the corresponding serializer if defined