Avoid double-query on csubs/casubs collections

Given that the preocessSubscriptions/addTriggered subscription sigantures has changed, I have take the oportunity of changing pointer for C++ references, as we did in many other places.

NTC