Fixed quaternion default value issue

The value of quaternion.w should accept zero. However, in the current implementation, zero value for quaternion.w is replaced with one.