Relaxational dynamics at the class transition in orientational and canonical glasses investigated by dielectric spectroscopy