Sanitize set passed to jsonutils.dumps()

Datatype set is not parseable by json.dumps() and will cause
ValueError. Catching that in _sanitizer and converting to list.

Change-Id: I9f1374c4268182e8d35e82c5784fb05c7b84c209
Fixes-Bug: #1296589