Added a default value for allowedRotations of [0] in case of calling setAllowedRotations is called with an empty [] array.
Merge pull request #76 from pentateu/topic/setAllowedRotations_freeze_fix

Topic/set allowed rotations freeze fix