merge: reverse array and length parameter order Make it pair up with the one for commits. This fixes #1691.