cd: only change to home directory if nargin and nargout are zero (bug #41275)
Consider the code snippet generated for the MatrixMult UDF: If TypeOf x Is Range...