(RGUI) use same rgui_iterate code for both GEKKO and non-Gekko