Added encodeListA, ListB and ListBA.