amended collection.reduce to fit EcmaScript specifications ... added reduceRight for resources. Modified copy and clone methods to work with iterator functions rather than stand alone