For a more concise and resilient deep copy before serializing, try this.
(Just stumbled on this thread while researching remoteServers and realized I knew a good answer to the question being asked even though it was a bit old... Figured I'd help anyone else who lands here later...)