Use unserialize instead of deserialize in SerializedType.