Make sure not to produce non-argument leaf plans for arguments
Fix for the cardinality estimation in presence of arguments.
Merge pull request #3360 from pontusmelke/cardinality-fix

Fix for the cardinality estimation in presence of arguments