implement bits of numpy_helper in cython where possible
Like with the transition to tslibs.np_datetime, this implements pieces of numpy_helper.h directly in cython in util.pxd.  The generated C should be equivalent to existing versions, but that is worth double-checking.

One dependency is removed from setup.py that was missed in #19415, should have been deleted there.