Simplify __merge_walk: we only call it twice, it doesn't need to be completely general.