c++ backend: for loop over map `for key,value in M:`