Fix incorrect calculation in quaternion inverse.

Should use squared_length not length.