Fixed cython.wraparound(False) bug in scipy/spatial/ckdtree.pyx
Merge pull request #2435 from patvarilly/ckdtree-negative-index-bugfix

BUG: spatial: Fixed cython.wraparound(False) bug in scipy/spatial/ckdtree.pyx

Two wrapper methods in ckdtree.pyx (query and count_neighbors) were marked with decorator @cython.wraparound(False), but one of them (query) referred to np.shape(x)[-1]. Since these methods are only wrappers to the methods that do the real work (__query and __count_neighbors_traverse) and are not performance critical, simply remove the @cython.wraparound(False) wrapper. This preserves code clarity and fixes issue gh-2427.