Simplified loop control in generated array read.