Save and restore BOOL arguments in sessions

IGV-2056