Added support for extended slices for array variables