[ticket/12575] Cleanup service_collection_iterator

https://tracker.phpbb.com/browse/PHPBB3-12575