Implement unmarshalling with merge.