Implemented slcc/extend_array.c and related changes