allow one dimensional input for polarization.eigval

* closes #919
* added corresponding regression test
* refactored original test case
* clarifying docstring