Fix maximize and form size/position loading/saving

Ensure when saving window state, only store the size and position when
form is not maximized.