fixed errors in the triangular Fourier transform and in the MPI_Reduce commands for arrays

(Parastation has problems with MPI_IN_PLACE for larger MPI sizes, e.g.
512)
several fixes