pack/unpack with 5.2 compat

`unpack` was renamed `table.unpack` in Lua 5.2. This way is 5.1/5.2 agnostic