Remember which sections are open, fixes #9.