Forms: refactoring of getControl(), HTML attributes are rendered in a little bit smarter order