Added 'team_number()' to the list of functions that are evaluated as intrinsic. Also changed the type of TEAM_TYPE (in TypePattern) to be DerivedType rather than IntType.
Implementation now no longer needs the static function MissingDerivedType() hack.
Derived types are not intrinsic types; this distinction is their reason for being. Please don't break this predicate.