fixed exists: now checks for the correct child index key
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