codec: some overflow and 0-length container fixes, and cbor tests.

- fix overflow decoding int64 from uint64
- decode 0-length containers as 0-length(not as nil)
- cbor: treat undefined as nil
- create test to run against cbor test vectors (from https://github.com/cbor/test-vectors/)