Implemented ShieldedTree.CopyTo, and added a test for it.