Added type to the union with the type_reference

This enables us to postpone the type lookup for the typedef reference type.