Fix Exception messages for ObjectIdentity
ObjectIdentityInterface doesn't require implementing __toString method, so we need to make sure that object can be converted to string.