codec: Fixes and tests for decoding time before unix epoch, and decoding zero-length list/map in stream into nil slice/map.

This fixes issues #5 and #7 .