Check length of array/iterator, off-by-one.