[GEOT-4675]: min/max improvement on PAMDatasets (Added missing commit after rebasing)