Prefer setImmediate to process.nextTick.

This avoids errors due to recursive process.nextTick calls.
Merge pull request #195 from mbostock/setImmediate

Prefer setImmediate to process.nextTick.