[registry] Add support of doctrine proxy objects. Hotfix.
Merge pull request #183 from formapro-forks/registry-support-doctrine-proxies

[registry] Add support of doctrine proxy objects. Hotfix.