Cherry picked type mapping commit by dyadyavasya, added gzip compression to the phar builder task