bugfix: SeekBarPreference keeps value on rotation, and cleanup.

Two small bugfixes:
 - onDialogClosed: callChangeListener is called on the correct value
 - onSaveInstanceState: the correct value is cached

The change on line 270 is purely cosmetic; I found it slightly easier
to read the code.

Tweaked some comments for clarity.