Fix Gadfly #370

Simple fix to the JuMPDict iteration issue. I'm not sure how best to test this, but it fixes the bug that @dmbates reported on my local machine.
Probably not, but I wanted to preserve as much of Daniel's logic as possible.