Type stability on Arrays of Arrays in nested for loops?

You could change it (both) to a while loop, then there is no yellow.