HPCC-12290 Reimplement jarray using templates

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Can you drop 'New' and would it be better named as a ValueArrayOf ?