Some queue changes.

Replacing spsc internal implementatino with the bounded queue (spsc had
some bug, and this makes it faster on some examples, slower on others:
a wash).

Also uncommenting some code from the boundedqueue that probably made it
buggy (was probably only commented during testing).