[ handle | type_id ] -s with RAII

thin std::unique_ptr like type safe thin wrap-s for CAPI hid_t,herr_t types which upon destruction, or being passed to HDF5 CAPI functions will do the right thing.