fix uses of mp_ptr and _nmod_vec_init/clear