fix realloc in USAdditions_M.template
fix memory leak in ComplexType_M.template
fix enum element in ComplexType_M.template
change variable names in ComplexType_M.template