Modified Index#tree to return a treemap (hash).