Add iterator support for channels and queues.