Fix AVX and AVX2 corruption due to undefined upper 128 bits after calling _mm256_castps128_ps256.