Override hashCode, equals and toString of Either.