Fix type(null) and type(undefined)