Added support for generi IComparable classes.