Fix #515: allow iterating over 1D scalar arrays in nopython mode