Some improvements in log_dump_val_worker() templates
Added setundef command