ACT-1540: Exposing taskId in HistricVariableInst. and Query + tested