Take representation into account when getting discriminant
Fixed
- Take representation into account when determining the discriminant type.
Changed
- Use stable methods to retrieve the discriminant in
PartialOrdandOrd
implementations. Safe methods used with thesafecrate feature don't use
recursive matches anymore, significantly improving the performance.