Switch nextTick to setImmediate

This gives a significant increase in processing speed events, particularly in complex relationships
This is some package. Original package not maintain now.