Implement hash equality for Version