fix overflow when a table is its own metatable. References #4