When patching the define callback, maintain the arity of the callback

This lets patchDefine work with modules like backbone.projections that
manage their own dependencies in a require-like fashion.

Formatting auto-triggered, making this commit a bit noisy.
I wander if we can call this `wrapFunction`... something super generic and wonderful :8ball: