Speed up to_string performance by relying on C++ versions

Addresses #134, fixing issues introduced by #132