BZ1129725: Dependent enumerations not working for RHS of Guided Rules or Guided Templates

(cherry picked from commit ca1e7846973c3db754bc489e834190458a4e10a4)