Adding failing test to demonstrate DDC-2432

Loading proxies with invalid identifiers will currently mark them as initialized regardless of the failure
applying required fixes for DDC-2432
Merge pull request #663 from doctrine/hotfix/DDC-2432

Hotfix for DDC-2432