Fix for post-luajit Spark versions.
Pack and unpack varargs through a closure.
Fix for Count and Each magic client table functions.