[PATCH 03/12] Introduce and use val_same() to decide if values are same or not