Not currently possible to use a Java 5-style for loop on an ArrayList (for example) from within CPS-transformed code, since its Iterator implementation is not marked Serializable.
Mishandling of binary methods accepting Closure
for in loop over result of String.split() gives NotSerializableException
More polite reporting of NotSerializableException
workflow-cps PR 77
workflow-cps PR 124