src/lua.js: fix typo in getmetatable
src/lua.js: Fix issue where object is removed from weak table but __gc isn't called yet
src/lua.js: Improve printStack function