Optimize hashCode in AbstractDomainError
optimize semigroup append