ArrayLists & Generic Tables

I have a Groovy script that returns the conveyed items that are associated with a part property.  The script returns its results via an ArrayList so it can return duplicate values.  For example, a part may have an an input port and an output port and the conveyed item of the connectors associated with each port is the same.  Is there a way to use the script in a generic table's custom column so the duplicates are maintained and displayed in the same row?  It seems that generic tables utilize HashSets and remove all the duplicates.