merge-recur: fix thinko in unique_path()