Fix bare raw pointers (switch to `*const T`)