Correction for cases when r.e. terms are amalgamated on two or more grouping factors.

More work on the grad! method for plsnested.