Make use of table.clear() see issue #2. table.clear is a new api introduced by luajit