Added support for [] operators to access elements.