JITFunction type fix, removed unnecessary calls to likely_retain_mat