Change ClassMetadata to handle getting and setting fields on proxies