Add a missing type declaration to the template.
Instead of creating useless big arrays for the _vectorisation_idx, use the _indices specifier