semantic: Correctly iterate over arrays.