convenience function to make gpuArray objects of any numeric data inside a struct/object