Fix metadata write.
Save the type in the metadata itself. Use md->tagLabel() to get the description, md->value() to get the raw value and md->print() to get the interpreted value. Use value->read() on the raw value to restore the original value. [bug #623071]
Showing with 139 additions and 61 deletions