Added more support for r-values to state.hxx
Added checked iterator class