Fix issues with non-real grid arrays