Adjusted a bunch of callbacks to use the new optXYZ getters for arguments.
Added a plain Lua implementation for string pattern matching when input strings are long. This allows timeouts for "evil" patterns. Short strings are still processed natively for performance.