Adds hashCode() and equals(..) to PageData class.