BUG: numpy changed how vectorize() keeps the original function.

@timdiller Fixes the long-standing test suite error.