Fixed logic error in workflow segmentation algorithm training - enforce that any task-wise vectors have the same order (as specified in the procedure definition).