Test if an object is a index object or a subclass of an index object.
Value
is_index() returns TRUE if x inherits from piar_index.
is_chainable_index() returns TRUE if x inherits from
chainable_piar_index.
is_direct_index() returns TRUE if x inherits from
direct_piar_index.
