t669 -- complete the visibility rule performance improvement
t669 -- fixed issues when optional variables make the formular evaluate to false