Reworked the for-loop logic to use the Object::iterator method and the next() method on the resulting iterator object. This allows for better error messages if the object isn't iterable.
Reworked the for-loop logic to use the Object::iterator method and
the next() method on the resulting iterator object. This allows for
better error messages if the object isn't iterable.

JanDeVisser/obelix,JanDeVisser/obelix,JanDeVisser/obelix