added setType for all fields to comply with moodle plugin approval rules