Fix invoking task with arguments

"args" is an array of all arguments, but when calling the old "invoke" we
need to unpack the array to individual arguments again.