Clean up our implementation of nextTick() to match node.js semantics.