SI-7261 Implicit conversion of BooleanSetting to Boolean and BooleanFlag

This allows a more compact expression `if (settings.debug)` instead of
`if (settings.debug.value)` and similarly `render(..., printIds = settings.uniqid, ...)`.
SI-7261 Implicit conversion of BooleanSetting to Boolean and BooleanFlag

This commit shortens expressions of the form `if (settings.debug.value)` to
`if (settings.debug)` for various settings.  Rarely, the setting is supplied
as a method argument.  The conversion is not employed in simple definitions
where the Boolean type would have to be specified.
Merge pull request #2327 from paulp/pr/2315-rebased

SI-7261 Implicit conversion of BooleanSetting to Boolean and BooleanFlag