MX-1140 Add a test that crashes the server (on a debug build) if we
improperly interpret the bits of a big long as a double.
MX-1140 Use the proper bitmask when checking for the real type during
key comparisons