ClassDefinition: correct classEntry for \IteratorAggregate is zend_ce_aggregate
Library: Fix undefined variables and cleanup unused ones