Be compatible with Lua 5.3

In Lua 5.2 `unpack` was deprecated and replaced with `table.unpack`, in Lua 5.3 `unpack` is removed.