Normalize the orientation vectors for matrix.

The orientation values are stored in the header as strings with only
a few digits of precision, so if we want to improve the precision
before creating the matrix.