Added serialization convience methods and integrated visitors and mapping.