Added two type params to classes for decoding of compressed types.