Fix isArray, eliminate restrictions in paths containing array indices