Added stop feature to iterfunc decorator

Now itermap can be used more generically, rather than just diving to the bottom of the nested list, and calling the function on those elements.