Implemented ParentIterator

Fixes a zend test.