code: function getSerializedType(value, descriptor) {
  
      if (value instanceof SerializedVariable) {
        return 'SerializedVariable';
      } else
  
      if (descriptor) {
        return descriptor.type;
      } else
  
      if (value instanceof Date) {
        return 'Date';
      } else
  
      if (typeof value === 'object') {
        return 'Json';
      } else
  
      if (typeof value === 'boolean') {
        return 'Boolean';
      } else
  
      if (typeof value === 'number') {
        return 'Double';
      } else {
        return 'String';
      }
    }
docs: Get serialized type for given value