Added wrappers for setImmediate and _nextDomainTick