Fix polymorphic serialization of ReadOnlyCollection