Fix generic parameter bug on DataPoints comparable definition