Reset table-layout.

Resets table-layout in the event it is defaulted to something else.
Fixes an issue in the dialogs that use tables.
Tests: Added manual tests for the affected dialog layouts.
Code style fixes.
Changelog entry.
Merge branch 't/12777'