Clean up of mut/const types in `ffi` and also `mut_null` -> `null_mut`