Calculates the magnitude squared of a quaternion.

// Returns 30
const r2 = Chalkboard.quat.magsq(Chalkboard.quat.init(1, 2, 3, 4));