[BZ-1059690] fix globals resolution in constraints