Fixing Array#reduceRight() which I have broken