fix Issue 12409 - Add "each" function as found in Ruby and jQuery

https://d.puremagic.com/issues/show_bug.cgi?id=12409
And what if the parameter name varies depending on which overload you call? Should the parameter names be homogenized for the sake of `Params:`?