Fix: typeof is bugged when checking for typeof(null). Now we consider
that case.