Revert "Non-optional deserialization for primitive types."

This reverts commit 924261a3d5dbc4c9ac2cd805faccfd2cfdb8d7bf.