implemented __getitem__ to access items in rObject by both name or index