Several changes.

Changed order from 'IndicesForward' to 'ForwardIndex'. The same for
'BackwardIndices'. Added 'External' and 'Internal'. Added
'ContainsIndex'.