improve(rest): change variable handling to common variable format

- makes variable representation consistent across all methods
- updates test expectations accordingly

contributes to CAM-765
chore(tasklist): adapt to rest api variable format change

contributes to CAM-765
Merge branch 'master' of github.com:camunda/camunda-bpm-platform