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 at least emit a `console.error` when this failed.