Add ws_queue type

Targets #597.

~~Pair-programmed-with: Marcel Müller <com2040@gmail.com>~~
Pair-programmed-with: @TheNeikos
You don't check whether `getref()` return's `NULL` here.