Fix invalid use of pointer to temporary object in json2lua conversion