Fix reflecting on function parameters when the function is a Closure