fixed and tested hash, added tree() method

added a unit test
added tree() method to create a \arc\tree\NamedNode tree from a nested hash
made the root argument to compileName() optional