Fixed allObjects to comply with NSEnumerator specification: "Invoking th...

...is method exhausts the enumerator's collection so that subsequent invocations of nextObject return nil."