Removed all the loops that were there just for testing.

They aren't necessary with a good profiler.
Added yet another version of append_n_sstring.
Added a test for the 4th version.