Ensure discriminator field is always set on insert/upsert

Fix for http://www.doctrine-project.org/jira/browse/MODM-180