Add `haxe.Rest` type for representing rest arguments for extern methods (closes #3238)