prefs: added typed getters, default values accessors, serialization support in DbTable adapter