domain: add arguments for the function in domain.run()

PR for https://github.com/joyent/node/issues/7193
@phpnode, ah, you are right, there is no way no avoid deoptimization, thanks for clarifying, I hope V8 devs will improve this.

I'll just add the loop manipulation as it is in the EventEmitter.