Support variable-length arguments in functions with -1