Settings persistence is now working.

Finally got it fixed after butting my head on the defaults system until
I tried using a dictionary encapsulation to hold my data.