HPCC-12290 Reimplement jarray using templates

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
The elements are 40 bytes in size.  If large numbers of items are added to it it might be inefficient.