merge-recursive.c: Add more generic merge_recursive_generic()