Fix IR type of .asInstanceOf[Null/Nothing].