Fix encoding of empty maps
Merge pull request #1 from ericmj/0.13

Fix encoding of empty maps