fix types of Array#reduce() and Array#reduceRight()
releng for v0.9.35