function createScalarValue(value, dtype) {
	  if (dtype === 'string') {
	    return encodeString(value);
	  }

	  return toTypedArray([value], dtype);
	}
Create typed array for scalar value. Used for storing in `DataStorage`.