Add putting typeinfo in primitive