AMP MergeSortByKey fix for 65535 tile limit issue + EPR 394528  394534