THRIFT-1266 generated C code for iterating over nested maps is wrong

Patch: Simon South