Replace concat with templates in struct generator.