Fixed passing const pointer as the first arg (send buf) to MPI_Reduce().

Simply casting `const T*` to `T*`: MPI_Reduce() should never change the
send buffer anyway.