HPCC-12290 Update based on code review comments

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-12290 Convert compare functions to pass pointers to const items

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-12290 Final cleanup of array code (kill macros)

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>