Adds type cloning. Only used for strings, which are really cloned. Should be done via refcounting