More basic permutation matching for AVX
Fix spurrious parameter type change in SSE2 repeat_*_half