widl: Don't directly access the type structure when determining the types in expressions.