Add missing generic arguments to generated code.