vector_iterator: Fixed internal handling of smart-pointer.

Used to be a reference, for which initialization with NULL doesn't work.
Now using copies, which is fine due to smart-pointer semantics.