Code and test for unpacking map workflows into dags.