rename R.repeatN and revert argument order

As discussed in #626

i'll do that one if you don't mind