[MRG] Remove _check_1d_array and _is_1d private function

Improve the test coverage and test formally this utilities.

I have also improved the `ValueError` message.

edit : Thanks to @GaelVaroquaux, I ended remove those two.