fix generation of illegal syntax in typesmart constructor generation