lzma: reworked code for decoder dictionary

Particularly the Write function required simplification.