Fix for Issue #24. Allow duplicates in non-sibling nodes.

The current code was too restrictive about duplicate nodes in the tree, whereas
the implementation requires only sibling node names to be unique.

Note that the uniqueness is defined (currently) by the node name.