queue: remove unused generic functions

Closes #1153.
queue: add queue_t root type