Add collection helper AddSingular method to code gen.