If num_bytes can be removed then a generic to_bytes and from_bytes trait can be created that will help with serializing structures and generic data.
The dependency on Sigils was also added.