Creates a new reference with the given value.
a new reference with the given value
the value of the reference
the type of the reference