Externalized primitive serializers and unserializers.