ISPN-3589 StackOverflow in InternalMetadataImpl.Externalizer