MT#3935 API: Properly handle bool values in prefs.

Preferences failed to validate in case of bool values.