Improve performance of isEqual() by skipping Comparator Factory if possible.
Merge pull request #1478 from willemstuursma/isequal-performance

Improve performance of isEqual() by skipping Comparator Factory