get an Iterator based on this queue.
return new dojox.collections.Iterator(q); // dojox.collections.Iterator