GenericValue: fix comparison of (Ui|I)nt64 numbers


Some 64-bit integers cannot be represented losslessly as a double.
Due to a typo in the operator==, the comparison has been performed
after a double conversion in too many cases.