Change return type of is_same_data() to int

This makes the component of the planID string have an explicit
0/1 for the inplace part.  Makes it easier to read things.