Fix ordering of meqn, mwaves dimensioning.