Refactor global setting editor. Cast types before save.
Make store `set` method more strict - reject settings of wrong types.