allow discriminator mapping with simple refs