Set the value of an atom.
The type of the value to be stored.
The reference key.
The value to be stored.