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

I haven't really worked with ts2hx much, so this implementation may be wrong.