OutputQueue refactor & misc
This was initially supposed to include solely the OutputQueue rewrite, but I added some fixes and improvements that I found along the way.
This was initially supposed to include solely the OutputQueue rewrite, but I added some fixes and improvements that I found along the way.