Improved readability by introducing invalid_id() getter. Made the ResetIndexWhenRemoved flag active in both debug and release mode, it used to be made active by Vojtech for release mode only for unknown reason.