java_gen/DataPathId: make comparable