Add getCode and getVariables methods back into SerializableClosure
Add getCachingIterator method to collection.