Small changes to Mpi routines.
Merge branch 'mpi' of https://github.com/gandalfcode/gandalf into mpi
Fixed some problems with pruned tree; added sanity check to help ensure valid pruned tree is used.