Corrections to CopyElementAsStringArray and ConvertToArray

The former should split a string into an array, not assume an array of strings in the first place. The second lacked a required typecast.