(De-)Serialize structured types. Dataiterator and repo_search support