making type-registry non-optional arg for serialization functions
docs