Add tests for GridArray

Fix CopyTo for CachingGridArray