multiline support for checkbox preferences (see #358)