Mecanim Rotation Problem

Mecanim doesn’t seem to allow angle values below zero or above 360°. Changing the interpolation method from Euler to Quaternion does not help at all:

Before:
73343-1.png

After pressing Enter:

73344-2.png

What do I need to do in order to fix this? What could possibly cause those behaviours.

Apparently Unity fixed it in the latest Patch 5.3.5p6:

https://unity3d.com/unity/qa/patch-releases

Animation: Fixed rotation values set in inspector restricted to [0,360] degrees when recording animation.