ts_stdlib: More stuff

- Rename remaining string functions to fit library namespacing
- add some Valgrind to the check test runs; lots of error I can't easily fix...
- safe(r) use of string-length discovery using strnlen