add generic routines for manipulating lists from PLCAPI