tree: TSR path length check

fixes #8