Added leaf generator method to STreeCollection