ruby: fix zigzag; fix bignum/fixnum encoding issues

* ZIGZAG has been broken since @eae663a8f
* the encoder was not able to send 2^64 until now