Re #6191. Add a setDetectorIDs overload for lvalues.

In the one place that I've changed to use it I could infact have employed
std::move to bind to the other version but that would mean yet another
mac ifdef.