Revert "Fix support for uint32_t value in preferences."

This reverts commit a2048b8e8cb062748129277d29b98af126887569.

This "fix" is bogus and probably does the opposite of what was intended.
And it breaks intended behaviour.