Now track nsDeclarations separately for templates and partials so that the declaration goes out before each separately