Make the format parameter to string_format an obect, not a reference

Apparently va_start does not like to work with references.

Fix for #6770