Allow value object identifiers

After updating to 2.3 I got some strange error messages about entities not being found etc.

I seem that some where along the way the support of custom doctrine types as identifiers got lost this patch fixes this.
This is very expansive call to do. Can you try an alternate method ?