Replace more mesh_global to mesh_local index routines: this makes it easier to distinguish where we really need global information and where local information is enough.