Update LZW codec to support building symbol dictionary.