Fixed topological sorting

Also cleaned up some of the signatures now that ITask's Name doesn't need to be supplied.