Now basing dihedrals on DihedralTrig type, and simplifying
the gromacs logic.

Running, but almost certainly some numerical errors.