Get rid of unneeded reference in get_function_args_as_array