make rpmkit.tree.walk yielding visited including leaves
add some test cases to check previous commits in rpmkit.tree.walk