bug fix: lazy evaluation of default parameter did not work because it was tested, if the parameterType itself is a function (that is alway true) and not if the parameterType equals Function.