Fixed reduce error in array_function_dereference

Thanks @bwoebi for the help with this.
Renamed fetch_array_dim_range to fetch_array_slice