Support typedefs for `haxe.Rest`