OCSADV-196: Changed contains to use points.nonEmpty check instead of points.length >= 2, since complexity of length is O(n) as opposed to constant complexity for nonEmpty. The length call made no sense and was carried over from the original Batik code, where it was supposedly intended to take care of line segments but did nothing for sets of > 2 collinear points, and nonEmpty seems to work just as well.