I just wanted to add that I think this is the correct change because I have an isheap
function that still works with this change:
local function isheap(v)
local t=type(v)
return t=='userdata'or t=='table'or t=='thread'or t=='function'
end
(I use this function to test for what I can have an __gc
callback on)