create an integer variant
This function increments the reference counter of the variant. It must be decremented, if the value is no longer used.