fix chaining of metadata driver and object constructor

This change properly creates the object constructors and metadata drivers for doctrine and doctrine_phpcr and sets the aliases the right way while this is still possible.

Fixes https://github.com/schmittjoh/JMSSerializerBundle/issues/389