[index] Move elements-access-related code to separate file, not mixing it with nodes definition.
[test][index] Change throwing nodes from polymorphic to variant-based.