make R.times throw if given an invalid array length
Merge pull request #589 from davidchambers/times

make R.times throw if given an invalid array length