ArrayContext._get_scalar_func_loopy_program: use lt_set (not le_set) for upper bound (fixes out-of bounds write, thanks @mattwala)