Path: add indexing support (__getitem__)