Could you add a comment here indicating that the loop was manually unrolled in order to verify that this works, and that a separate test sampler-array-using-loop-index.html checks that loops indexing sampler arrays still work?