We need to be able to poll the material indices of an object. We had this node in the BDK fork but now it's missing.
The big point of contention would probably be evaluated vs. original materials. Could have a switch for either, though it would change the depsgraph.