HPCC-12290 Reimplement jarray using templates

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Interesting...  common something library - it was part of the grand rewrite of the topspeed application generator that never progressed very far.