Allowed boost::intmax_t as a pointer serialization type to hopefully avoid problems on LLP64 systems; fixes #4366