make the generic `Option` type de-/serializable for json and yaml --------- Co-authored-by: KN4CK3R <admin@oldschoolhack.me> (cherry picked from commit 53c7d8908e5ef35818b72b8c3d873b509269bc1a)