Disambiguating use of $type variable