Added interface and class for serializing classes for StateManager with serializer also using compression