[jit] Call mini_replace_type () in one place.