scan: apply IGNORE_DECORATORS to variables as well

Fix detecting global exported variables.