Fixed a bug where nodes weren't being deep-copied.

Implemented Clone() overrides for the nodes.