Improved loop chain argument handling, added reduce and reduceRight patterns