Some vector.c cleanups, and some simple vector unittesting.