Fix support for uint32_t value in preferences.