Fixed reading of layers and layer mask data
Implemented decoding of known undescribed descriptor's types. Some more may exist
Removed duplicated constants
Some TYPOs fixed