Serialization of superclasses