luacat: fix setResourceType
luacat: fix setResourceType

It used to assume always positive indices, and would modify existing
metatables.  The new setResourceType always creates a new metatable and
works with negative indices.

zombiezen/mcm,zombiezen/mcm,zombiezen/mcm,zombiezen/mcm