BPMSPL-84 - minor bugfixes, extended func for task/process instance query operations