Wrap entire element in CDATA rather than each item in list.

Previously, if a property was a list with several items containing commas, each would
be wrapped in its own CDATA block. Now, the check is performed on the entire string
after serializing a list to a comma-separated string.