Bug fixes to allow Monodomain to be run in parallel.