Fixed memorized should be a list of values.
Added basic tests for republish, aka. memory.