Support for dynamic default parameters in functions/scripts

Not just constant expressions for default parameters, instead also dynamic expressions can be used.