Update Dispatch.hx

Use @:optional metadata in args
Merge pull request #2620 from pperidont/patch-1

Update Dispatch.hx