issue #3956:Optimize the templates of lua binding-generator