Fixed static_cast conversion issues and code simplified in domain transaction manager implementation
Merging changes
Fixing the issues caused by transition PetscContext->ParallelContext
Added missing "updateSharedDofManagers".