Multivariate iterated permutation procedures for hypothesis testing in genetics