Make iotype read-only in set_metadata()
Merge pull request #1730 from setowns1/bug

Make iotype read-only in set_metadata()