Johan,
if the variant array is your problem then you can take a look at the lvdata package of the OpenG Toolkit at http://sf.net/projects/opengtoolkit . It depends on the error package so download both lvdata and error packages.
The LabVIEW Data Tools contains numerous VIs to manipulate variant data. You can use "Index Array.vi" that inputs a variant array and an array of indices and outputs the array element (as a variant too). The toolset is still under active development so your feedback is appreciated for any feature that you would need and that is missing. While writing this I realize the the toolset lacks a "Replace Array Element.vi" for arrays...
On the other hand, if the array has always the same nuber o
f dimensions (1D, 2D,...) you can use the "To G Data" function to convert a variant array to an array of variant data. After the conversion you get an array of variants that you can manipulate like any other array to index and replace elements.