Misc changes in vector math.