replaced Number impl for Encode with Integer and Float, in order to be compatible with Elixir v0.10.4-dev