Assertions in ObjectVariantMapper::mkSerializerForStr ()