ToolForm: Fix datatype mapping, provide data mapping through api