BUG Form session message clearing regression

Regression originally from 729bcc95, but made visible by 014f541a8
HTMLEditorField undefined $dimensionsField (fixes #7494)

Also use fluent API for form field definition to keep field invocations
in one place and thereby reduce these kind of bugs.