Added __hash__ for all classes overridding __eq__.