Fixed bug in chunked writes. Added getn to deque implementation.
Fixed bug in chunked writes. Added getn to deque implementation.

YuanPeir-Chen/turbo-support-mipsel,luastoned/turbo,mniestroj/turbo,zcsteele/turbo,ddysher/turbo,zcsteele/turbo,ddysher/turbo,kernelsauce/turbo,YuanPeir-Chen/turbo-support-mipsel,luastoned/turbo