If you look at the chapters in Deuteronomy [5-12] about idolatry you will see why the Gra signed the excommunication. Idolatry can be Jewish. What makes it to be idolatry is the worship of any being besides God-- the First Cause.--not dead tzadikim, [or live ones either.]