Modified calcTypeName() so that it does not allocate a std::string for