Added dependency batch
typeOf() now also accepts undefined and null