support underlay workspaces when calculating topological order

@tfoote @wjwwood Please review.