Merge pull request #1729 from setowns1/bug

adding set_metadata method to Container
Make iotype read-only in set_metadata()