FIX: backporting matrix_rank

this fixes recent build issues across numpy versions related
to the new anova function.
COSMIT + proper conditional backporting
Merge pull request #600 from dengemann/fix_test_parametric

FIX: backporting matrix_rank