Fix scope on `ivar_scan`.
Use table iteration method.