Add array utils, add date range array strings and a few optimizations