Added better serializing support for network template.