Replaced Number impl for Encode with Integer and Float

In order to be compatible with Elixir v0.10.4-dev (master)