Source sweep: Replace std::ostringstream when used with a single append
This replaces std::ostringstream
, when it is written to only once.
If the single written argument was numeric, std::to_string
is used instead.
Otherwise, the single written argument is used directly instead of the
std::ostringstream::str()
invocation.