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
Merge pull request #3705 from Karlson2k/fix_CArchive_buffer_01

CArchive: fix incorrect streaming of size_t