GEOT-4767: GridSampleDimension using getters on copy constructor