Switched order of reps and types for mclapply.