ACT-1789, historicTaskinstanceQuery support candidate

let HistoricTaskInstanceQuery support candidate, just like TaskQuery.
There is patch and testcase, please review.

And I change some tabs to spaces in HistoricTaskInstance.xml.