[Refactoring] Set ismixin and literal in parsing phase

They won't be modified in semantic phase, so pass them by constructor arguments of `TemplateDeclaration`.
fix Issue 11533 - Compiler should allow to being nested for static local template functions
Merge pull request #2794 from 9rnsr/fix11533

Issue 11533 - Compiler should allow to being nested for static local template functions