Make sure not to produce non-argument leaf plans for arguments
Fix cardinality estimation for query graphs with arguments