math: Cleaned up term ordering in mat*vec.