Adds the starts of a nicer iterator interface for leaf nodes.