FIX: backporting matrix_rank

This fixes recent test issues for older numpy versions related to the new anova functions.