rename ternary->ternlog and associated form/field TI->TLI