remove bad casts in avx all_reduce, fix #607