Speed up Mesh::removeUnusedMeshNodes() a bit.