Replace variable iterator with value enumerator.