Cannot use for loop for map variable to pass to template

It’s just crossed my mind that this might be related to this:

I’ll give it a try and see if it works.