added RuleHelper to contain rule actions not expressible as lambda functions
minor bugfix to PolyRule class