(maint) Add optional_parameter_count method to Closure

Add a method to return number of optional parameters on
Puppet::Pops::Evaluator::Closure just like Puppet::Parser::AST::Lambda
has.
Merge pull request #2314 from dalen/lambda_optional_param_count

(maint) Add optional_parameter_count method to Closure