Remove vector metatable setting

This not only makes the vector functions faster, but also makes them more
consistent with other functions.
Add sanity checks to vector functions