old version of ropes.nim to prevent merge conflicts
'sort' for ordered tables
fixes a performance regression for json handling
support for LuaJIT