Fixed problems with weight creation of upscaling operators and the handling of size > huge(i4) arrays.