Analysis has revealed a number of small issues that can be fixed in the UI controls code base. This issue is therefore a catch-all for these issues, and I will soon push a changeset that covers a number of these. Subsequent fixes will follow-up in additional jira issues.