Don't merge value objects

The bundle currently tries to call `$om->merge()` on value objects, that are defined with (local), too. This causes:

`Notice: Undefined offset: 0 in vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php line 729`

This PR checks whether an object has identity before trying to merge it.