Convert filterid and filtertype flags to comma-separated lists.