Added well-defined iteration behavior in foreach.

The Array Iteration page documents the behavior in depth.