fix JuMPDict iteration in layout code.