Fix config saving and the config:change App event, refs T317