Performance improvement on when/function

http://jsperf.com/compare-when-function-apply-implementations
Merge pull request #107 from riccieri/apply-performance

Performance improvement on when/function.apply