Fixed permanent dirty state on containers containing hidden controls

If you call setVisible(false) on any Form control, then the Form's dirty state will always be true, causing form being rendered to FrameBuffer every frame.