Minor improvements for quaternion stuff