Change vector and matrix math to all doubles.

This required some work, because the CODA data is nevertheless stored
in float format.