Add stack::unsafe_empty(), stack::unsafe_clear(). Add some comments. Add some unit tests.