Add a way to find all instances of an object

We need a binding to find every reference of a given id to be able to dehardcode the Intervention effects.