Fix big in queue:out that makes it O(N^2) in the worst case

Running queue:out and queue:out_r one after another many times will copy one list
back and forth if another one is empty. Change r2f and f2r to copy only
half of big list so such cases will happen more rarely.