Refactor recursive table compare
Refactor recursive table compare

Pass threshold values directly down the stack instead of creating a new
threshold table for every call. This should improve the performance
since Lua does not have to allocate a new table every time.

o-lim/luassert,ZyX-I/luassert