Cleanup the inlined `iteratorTemplate`.