Added support for the __iter__ magicmethod (for i in x)