Bugfixes

Miscellaneous bugfixes. Most from the commits "Separate alert dialog
classes" and "Editable names".