Added flatten/inflate extension methods. Added to/from XML extension methods and XmlSerializer.