[index] Change is_leaf param to is_internal_node in apply_visitor() for raw nodes.
[index] Remove unneeded typedef from raw dynamic nodes.