remove calls to likely_retain_mat and likely_release_mat for inlined matricies