Fixed setmetatable(t, nil), closes #464.