Debugger::getType() now returns 'function' if a closure is passed.