hash and eql? should consider @root.
Specs for Path[] constructor.