We used to have a Derived Type serializer, but it got accidently removed during transitioning of repositories. Bring this back from this fork: https://github.com/einari/MongoDB/blob/main/Source/DerivedTypeDiscriminatorConvention.cs