Fixed (hopefully) a few bugs in the Vector class