Do not require @id while persisting a resource type value.
Add tests for value hydrator.