Fix huff_make_decoder and restrict IS_BYTE and IS_BRANCH