Fix ActiveRecord participant retrieval with non-primitive identities.

* Reported in #177, identities of non-primitive objects may be recorded differently than they are later searched for.