Made foreach work with nullable iterables

New correct implementation, that uses iter!! instead of iter?.iterator()