allow discriminator mapping with simple refs

discriminator mapping gets ignored when using simple refs...this fixes that.