Filter out non TemplateInstantiation and non Memoization events