interpnd: Cython cleanup, fused types

This PR replaces the ad-hoc templating in interpolate/interpnd.pyx with Cython's fused types, and also makes the code to compile on current Cython versions (= fixes a few GIL bugs).