Minor tidying.
Improvement to OSX double->string conversion for better speed + thread-safety.