Improve lua structs generator.