ENH more checks to handle kdtree changes since scipy 0.11.0