Changed templated tostring function in SVS to pass by reference instead of value