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:


After pressing Enter:


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:

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