Fixing statistics scripts to use Typed Lua parser