Fixed conversion of string to char[].

Fixes #287.
Added (not working) support for conversions to XML.
Added support for conversions to Regex.
Added tests for conversion to enum types.
Removed unnecessary checks for null.

The base object cannot ever be null in a PSObject.
Added support and tests for PSObject.ToString().