pan/midgard: Add mir_rewrite_index_dst_single helper