Fixed reload in Reference nodes.

Nodes and plugs no longer accumulate copies when a reference is loaded again. We attempt to reuse old external plugs where possible (when they correspond to the newly loaded external plugs) so that the outside of the node changes as little as possible from an observers point of view.