SPARK-1632. Remove unnecessary boxing in compares in ExternalAppendOnlyMap