Polymorphic serialization now works properly.