Fix default settings when they are boolean.

error is that ```enabled ||= true``` always evaluates to true.
Change all initialization of bool settings to use the same syntax:
```setting = true if setting.nil?```

Same as #2652 but for master.