Finish RMERGE_R. Based tests work well.

Next starge: RMERGE_T and more efficient code.