Use own buffer for LOOP substitution table.

Conflicted with the use of lj_buf_cat2str() in lj_opt_fold.c.
Merge branch 'v2.1' into v2.1-agentzh