Make window-to-win and restore keep track or window-parameters

The window-parameters are not saved, with this modification the parameters contained in the window-persistent-parameters are saved and restored, the way that current-window-configuration does.