Advise more magit commands so that they restore window state.