Make cloneObject preserve the rule regexp