Change table to module, coz table is one of the Lua supplied modules.

On the oter hand, module is itself a Lua name, but we ignore it coz it's broken anyway.
Update isValid() to deal with multiple Thing copies.