Fixes to handling communicators for OpenMPI