make CalcTypeName take a stream instead of a string to concat onto,