Changed implementation of Index#read_tree.