close #4
- Support template parameters access in LuaScripter
- code refactoring