array refactor - package arrays updated except for json routines
array refactor done - regression tests not passing yet
array refactor - passing regression tests
null array tests for stats functions