Respect dependencies generated by GetRes and GetAtt

This fixes the basic_create test scenario copied from the
distributed-graph branch.