Changed ComparisonConstraint implementation from Int32 to IComparable, because it is more general solution.