Intersect indexes that return Array and Ref

Have you read this thread?
The workaround proposed to me did not fit my case, but maybe you could find something useful.