Improve memory usage of libsyntax

Replaces some usage of `.to_string()` with `.into_string()`
The proper solution is #16544
(FWIW, I guess is the change that is making the noticable difference; everything else seems minor.)