Fix an ICE when dereferencing types which cannot be dereferenced