Optimize array access for single dimensional arrays

For rank == 1 (1 dim array) blk is always going to be one. The extra
multiplication hurts us in the generated code though.