Cleanup of refVector() and ptrVector() calls to edm::View<T>

Cleanup of refVector() and ptrVector() calls to edm::View<T>. This is a follow-up to #6245.