BUG: numpy version checking in ndimage

Closes https://github.com/scipy/scipy/issues/3805.  I checked it locally with the numpy development branch which is 1.10.0.dev-something.