code cleanups on containers and use _ConstGetRep instead of _GetRep () in a few places