Have spend some time and find an error in the 2011 SDK.
To set a quaternion, the SDK write, set it with quat.set(doubleW, doubleX, doubleY, doubleZ). But it must set with quat.set(doubleX, doubleY, doubleZ, doubleW).
In the 2013 SDK the issues is solved, maybe in the 2012SDK also.
Hope it works now...
face