[DDC-3103] Is embedded class information in ClassMetadata is not stored when serializing.

Fixed issue. Created a new test case that works (DDC3103Test). 
The test Doctrine\Tests\ORM\Functional\ProxiesLikeEntitiesTest::testPersistUpdate failed since checkout.