We can use the Genstat procedure ANTORDER to help decide the order of the model:
ANTORDER [block=pair; \ TREAT=pasture*dosed+ewediet] wt[]