Adding typespect to an Ecto Schema

Custom types should be implemented using Ecto.Type behaviour, so maybe it would be possible to bake this into any new custom type?

There is also a relevant issue in the ejpcmac/typed_struct repo.