Fix all warnings and little bit refactoring.
Merge pull request #2659 from mikamix/fix_template_compiler_warnings

Fix ScalaTemplateCompiler warnings