A Lua interpreter with reference-counting collection and built-in copy-on-write tables