Use discriminator value as class name if not found in map

This changes discriminator resolution using the ClassMetadata's map to match that of association mappings. If the discriminator value is not found in the map, the value itself should be used as the class name.