Fixed ChainSerializer::serialize() with proxies