Core/SAI: Fixed ACTION_SET_EVENT_PHASE, ACTION_RANDOM_PHASE ...

...and ACTION_RANDOM_PHASE_RANGE parameters validation, the parameters were checked as phase indexes instead of phase masks