[DCOM-96] proxy generation as of doctrine/common#168

This PR applies changes required to use the new proxy logic implemented in DCOM-96 at doctrine/common#168

Merging this means bumping requirement of `doctrine/common` to `>=2.4`.