Fix zigzag test.
Refactor zigzag code. Add tests.

Add support for large 64bit integers encoded as strings.