Changed TrackWithVertexRefSelector to a stream module.

Static analysis and helgrind showed it is safe to convert this
module to a stream module. Thread performance analysis showed
this conversion is needed for efficient threading.
To do the conversion, I introduced ObjectSelectorStream templated
base class.