Supporting custom storage in StateToContent