Fixes for scene graph memory leaks.

One important this to node is that the scenegraph expands
like a spiderweb, but it also expands an inner underlying web
also.

When deleting these attr nodes, only the root node will delete
the corrensponding node from the inner layer.

This avoids duplicate deletes, because an inner for a given node
is likely the child of another attr node.