adding a reduceRight (it's in JS 1.8), and aliasing foldl and foldr
(cherry picked from commit cb38c6ae6358693725f816e9152034f236d08755)