main: limit evaluation graph depth to 2000 nodes

This allows us to break out of situations where circular dependencies may arise.