Allow path parts to be used as list indexes