remoteindices: changed template arguments