Add SetToArray and ArrayToSet functions for more general RTTI set handling
I need to convert a generic set to JSON array of string and back.
Unfortunately FPC offers only StringToSet and SetToString.
So I split the StringToSet and SetToString into ArrayToSet+StringToSet and SetToArray+SetToString to be able to convert sets with the RTTI to a generic structure and not only a string.