luajit: pass calling rule's sid,gid,rev to script as SCRuleSid, SCRuleGid, SCRuleRev.
lua: clear stack after each script run
lua: push correct length back through ScFlowvarGet, work around valgrind warning