Problem: Selftest for zhash leaks memory
Solution: Destroy the hashes that are created
Problem: Code for zuuid_formatted_str is not quite idiomatic
Solution: Return a freshly allocated string instead (and adjust whitespace)
Merge pull request #838 from jemc/master

Problem: Code for zuuid_formatted_str is not quite idiomatic