Fix for post-luajit Spark versions.
Pack and unpack varargs through a closure.