setTtype in form element

Moodle 2.5 issues a notice if form fields are not explicitly typed.