Added TLG6 filter types decoding for C++ version
Changed decompression function placement
Added TLG6 reading for C++ version

Ported from krkrz with minor changes.