Extensions to internal. Implementation of extension methods for serialization.