Added set_metadata/3 to all datatypes.