I have the same Problem, I think the HistoryTaskImpl is missing some stuff:
* the name of the task is not used or persisted at all
* the due date exists in the java class but there is no database field for storing it
* there is no reference to the process instance