Bug fixes in Vector3D

Commit sponsored by my super classy unit testing framework