[bugfix] tree.each: provide right path to callback