Add support for integer and string prefs.