Allow passing Arguments object to when/function.apply

I think this is the smallest possible change to allow Arguments instances to be passed into when/function.apply, compared to #387 whose perf implications aren't clear yet.

cc @phated