Fix cut-n-paste in `leaf_paths`; doc and test 'em