Cleanup tag now successfully alters the template before passing on to static caching. Added EE 2.8.x compatibility