Allow ClassMetadata to invoke lifecycle callbacks on proxies (fix #763)