core: remove support for non-function values for setImmediate/nextTick