code: function saveReplicant(replicant) {
  	if (!replicant.opts.persistent) {
  		return;
  	}
  
  	if (_pendingSave.has(replicant)) {
  		return;
  	}
  
  	_pendingSave.add(replicant);
  	replicant.log.replicants('Will persist value at end of current tick.');
  
  	process.nextTick(() => {
  		_pendingSave.delete(replicant);
  
  		if (!replicant.opts.persistent) {
  			return;
  		}
  
  		let {value} = replicant;
  		if (typeof value === 'object') {
  			value = JSON.stringify(value);
  		} else if (typeof value === 'undefined') {
  			value = '';
  		}
  
  		try {
  			stores[replicant.namespace].setItem(`${replicant.name}.rep`, value);
  			replicant.log.replicants('Value successfully persisted.');
  		} catch (error) {
  			replicant.log.error('Failed to persist value:', error);
  		}
  	});
  }
docs: Persists a Replicant to disk. Does nothing if that Replicant has `persistent: false`.
  Delays saving until the end of the current task, and de-dupes save commands run multiple times
  during the same task.
  @param replicant {object} - The Replicant to save.