Represent terms as lists of lists