test for ASTNode_getIndices
constify
test for ASTNode_getIndexArray
constify