add __getitem__ to CObject to support slice operator
added CObject.__nonzero__ for nonempty=truthy
Merge pull request #44 from karchie/master

add __getitem__ to CObject to support slice operator