lzma: fixes for the length codec

The length codec is now encoding and decoding the length offset, which
is minLength (2) less than the actual length.
lzma: error messages of copyMatch improved