Fix autodetect of typerex package type

Now opam can figure out how to unpack the archive.