Fix issues in develop introduced recently by two different MRs by removing explicit use of communicators and replacing that by mpi_grp_t and the corresponding MPI wrappers.