Fixed tons of bugs in Oda.UI.Dialog

Dialog should be 99% working now.
Still not working: manual redraw should refresh size as well.