Add CastleRights.equals(CastleRights) and CastleRights.hashCode().