An extension trait for all stdcode-serializable stuff.
Safe deserialize that prevents DoS attacks.
Serialize the stuff