Move debug summary to language/template systems