fix cpml bugs
rename type name of template cpml:change 'type1' to 'T'