Add a type adapter for artifact version. Should fix #354