Redefine gp_widget_get_value & gp_widget_set_value

New functions use int, float or string according to the widget type.