Change rank-related fields to signed int for MPI_PROC_NULL, silence some compiler warnings