Encoding tests refactored and extended. Dictionary encoding order bug fixed.
Decoding implemented. Tested almost completely. (Few more exeptional test cases needed.)