[misc] Generate task nodes in flow graph from job descriptor; plus some other fixes.