Adding id field to tuple and adjusting hashcode accordingly. Found and fixes small bug with range criterias