Fixes anon subtasks and chains.  Closes #1607