fix transformation of camelized attributes in the serializer