Defer rule memory stringification until absolutely necessary
Add RuleMemory tests