Fixed errors in translating array slicing indices from IDL