CArchive: support streaming of short, int, long and long long (instead of int64_t)
required for size_t streaming (at least on OSX)
CArchive: use size_t type for sizes