BasicType-/BooleanComparator consistent comparison

#761