MPI_Type_commit must be followed by MPI_Type_free to release memory