HPCC-12290 Reimplement jarray using templates

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
It was, and then that lead to a compile error under windows - because it fully expands the template definitions because they are exported jlib.