merge2nx2n: move initializations out of the loop

Only mergeIndex and MVs will be changed in each loop.
RD merge: remove more redundant set-fields