change unpackstruct so that it behaves the same way in Lua and Terra.
Previously in Lua, it would unpack non-tuple structs.