Convert TypeScript rest parameters to haxe.Rest (closes #6)