Modernize Det/DetCond
- use error(),warning(),debug(),verbose() instead of explicit MsgStream
- use SmartIF instead of raw pointer + explicit release()
- use std::unique_ptr instead of raw pointer + explicit delete
- prefer STL algorithms
- prefer range-based for loops
- prefer auto
- prefer implicitly generated destructors