Fix assertion in queues.dequeue

Fixes issues #1172 , which is caused by a (presumably) old assertion checking for a nonexistant 'count' member. I changed the use of 'count' to 'len'