Iterators, lists and exceptions

Adds support for iterators, lists and exceptions.