Add ZeroEmpty flag on Decoder.

Fixes #17, partially fixes #12.