Testing of the PointVec class.

This mainly adds tests of the PointVec constructor. Some changes connected to bugfixes in other places too.