libnum: Remove all uses of `~str` from `libnum`