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.
This ends up allocating an unneeded array.