WICKET-5182 Incorrect signature of types which extend Comparable