Fix for NA/NaN in radix order for numerics in 32 bit

unsigned long -> unsigned long long (this is always 64-bit).
Accounting for NA differences in 32- and 64-bit.