Get Object/Material Index of Completely Transparent Objects
In Cycles you can adjust the Alpha Threshold for the Render Layer to adjust how layers are affected by transparency. Setting the Alpha Threshold to 0.000 will result in all objects - even those that are completely transparent - affecting the Index passes (as well as the Z, Normal, UV, and Vector passes).