bugfix: catch more dynamic output restrictions with graphs
Summary: resolves https://github.com/dagster-io/dagster/issues/4359
Test Plan: added tests
Reviewers: cdecarolis, prha, owen, yuhan
Reviewed By: prha
Differential Revision: https://dagster.phacility.com/D8911