sets type in form element
Merge pull request #55 from lsuits/MOODLE_23_STABLE

setType in form element