[registry] Add support of doctrine proxy objects. Hotfix.
Merge branch '0.11'