Added STI inheritance support; refactored active_model_serializer