Refactored use of NSSwapBigLongLongToHost (now only used in ID generator and NSData category code).