quaternion: Fix the → matrix conversion

The w row vector should be [ 0, 0, 0, 1 ].