codec: in fast path, encode nil maps or slices as nil values.

Currently, fast-path mode will encode nil maps and slices as zero-length maps or slices.
However, the generic code path (kMap, kSlice) will encode such as nil.
This CL makes the fast-path behaviour consistent with the generic behaviour.

Fixes #37 .