[AN] GetRuleFromUI() now takes optional index param for #1634.
[AN] Pass previous index to GetRuleFromUI() on change check.

Fixes several issues regarding check state checks, particularly probably
fixes #1634.