[DCOM-194] Fixed proxying magic getter with reference
Applying CS fixes and minor hotfixes to doctrine/common#278
Merge pull request #281 from doctrine/hotfix/DCOM-194

DCOM-194