HPCC-8665 Fix the types of link counted arguments to out of line functions

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Merge pull request #4104 from ghalliday/issue8665

HPCC-8665 Fix the types of link counted arguments to out of line functions

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>