Add a method for converting lists of JIDs to csv strings or RIDs (common case for constructing queries)