Added methods hashCode() and equals() to PercentType

PercentType was missing the methods hashCode() and equals(), this pull requests add them to PercentType.