Now possible iterate objects of type Traversable and Iterator
Added ability iterate objects of classes that implement PHP-interface Traversable or Iterator
Also some cosmetic changes, improves code readability