Ruleset: added a toggle to merge() to specify whether to overwrite scalar rules