Pass vectors by value.

This increases performance by decreasing the amount of pointer lookups
that take place in the code. It also allows for simpler vector code.