settings: Add settings_value_as_uint64() helper function