[Generator template] Fixes badly formed Objective-C