Make iotype read-only in set_metadata()