Generation seems ok, still to check behaviour on NUMVARS limit during tree generation. JSON seems ok but string copy passed to function as result is empty