Adds to_quat methods to mat3 and mat4.