Add self-check shortcuts in Equals/Compare

If this == otherObject, we shouldn't go through the rest of the method
to compare each field. We should just return true/0.