Updated to work with Elixir 0.14.2

Kernel.size is deprecated in 0.14.2. Fixed this to use byte_size or tuple_size depending.