Flatten pointers in map decoding, for consistency with json
Allow encoding maps from JSON unmarshalling