structure: improve API docs and add test for IsValid()
structure: convert ToMap() to Map()
Convert ToSlice() to Values()