ensure collection validation also works for iterators (and other non-array traversables)