Fixed bug #785: Profiler does not handle closures and call_user_func_array well.