Implement String.to_integer and String.to_float in Elixir, without relying on Erlang's :string module

Closes #1598