Permutation Tests of Correlation with Repeated Measurements