fixing type encoding
fixing decoding of qualifiers2