set memoryleak resource definition ttl to nil for prefs mtime
call super after setting the publish default in create_from_json. and add a test for it.
fixed the fix!