add RuleCollection::setRule() so we can implement Aura.Input FilterInterface