Check we get both key and value from a decoded map entry.

Previously the code assumed a well-formed map entry,
and would panic in the SetMapIndex call if the map was
missing either the key or value field.

Fixes #27.
1 file changed