BUG: fix leaking errstate, and ignore invalid= errors in a test

Apparently, Numpy error behavior is different for Python2.6/Numpy 1.5.1 compared to more recent versions, as the invalid flag is not raise in newer versions.

Fixes gh-3662