added some codegen for range array sections