allow typedefs for haxe.Rest
Only match `haxe.Rest` argument type for extern classes.
Merge pull request #3267 from HaxeFoundation/follow_rest

Support typedefs for `haxe.Rest`