BUG: off-by-one error in PPoly shape checks

should close https://github.com/scipy/scipy/issues/4216