core: correctly parse boolean configuration values.

Also, with style.