Add missing `template` keywords.