Re #7879. Remove VectorHelper::iteratorToArray methods.

Replaced in the one remaining place it was used with standard STL
constructs. Not sure why they weren't used in the first place.
Merge remote-tracking branch 'origin/feature/7879_remove_iteratorToArray'