fixed metatable-related loop when a table is its own index. References #4