Fixing v2 specs so 'on-XXX' clauses return lists instead of dicts

* Fixed v2 task and workflow specs
* Fixed unit tests
* Fixed direct workflow handler

Change-Id: I41797877f53aef0a555c0335dd0c5aa6c61f4dff
Merge "Fixing v2 specs so 'on-XXX' clauses return lists instead of dicts"