Templatize mesh iterators to work with old and new types