Task4 array indexing

Implemented array indexing type checking + code generation