Fix cython new numpy interface problems.