Fixes marshalling of settings to and from json.