Bug 1097450 - Save (to settings) the activeLayout of groups supported by one layout, when we change to that layout

- Also, properly define the undefiness of activeLayout in InputLayout's layouts.
Please append `.catch(e => { console.error(e); }); here. The error in the function block in L176 will be ignored if you don't do this.