decode test exhibiting a bug with pointer-valued maps
fix a bug decoding pointer-valued maps
Simplify the test.
Be idiomatic, even if it does use one more SLOC.