WIP: Switch to custom vector class.

Switch everything to use our custom vector class instead of std::vector.