What pointer lifetime to use when iterating through a tree? - Modular