fix array
Added (not working) support for conversions to XML.
Added support for conversions to Regex.