fixed missing path for the root node when dumping a tree. closes #318