Added str <-> Num conversion functions to core::num.

These should have enough options to make them usable for most
number parsing or emitting needs.