Made proxy objects for serialization.
Fix conversion from proxies to non-proxies.
Fix output bugs.
Add XmlText properties.