Add method to allow unmarshalling of a single value.