Fixed attributes for new and old root in treeproto._setrootnode

Removes the attributes of the new root node that are not supposed to be in a root node. Respectively, it removes the attribute data-child-role, which is only used by root nodes, from the old root. This should probably have been a part of #109.