add __getitem__ to CObject to support slice operator