I’ve been looking at it a bit more, I think it’s by design. You can’t pass an array reference out of a function. See the parameters
Note the missing ‘by reference’ on the output.
( Same with all variable types )