Support multiple calls to iterator() on the Iterable returned from doTransformStuf

A change to how the internal Iterator is initialised in doTransformStuf to ensure multiple calls can be made to the Iterable's iterator() method.