Simplify the Dihedral class slightly and fix the building of the dihedral arrays
(everything seems to work correctly now).