Persisting arbitrary types WIP.