Fixes #1743. Use nil 1.9+ for type in set_trace_func