Add equals method to Violation.

Oops, my bad.