Trying to use unordered_map

Wait, so that does raise the question again: Why not just add MapVector::getVector to return the vector?

Yeah, if there's already takeVector, a getVector (returning a const
ref) seems reasonable/plausible to me.