lzw: Correctly flush everything in reset()