Let some classes extend Serializable.