add Eq instance for CDialect

It might be useful to add more instances as well, however I thought some semantic meaning should perhaps be attached to the Ord instance, so this is just Eq.