fix bug: classOf(null) and classOf(undefined) returns Object instead of null/undefined