fix wrap, unwrap_as, contents, contents<-
documentation
new tests for contents<-; bugfixes