LZ78#compress now works correctly with the recent changes (see previous commit).