MAINT: changed 'closest' interpolation to 'nearest'
TST: note on overwrite_input parameter in percentile

* added note that `overwrite_input` has not effect when `a` is not
  an array in the percentile function.
* added unit test to verify that no error is raised when `a` is not
  an array and `overwrite_input` is True.