Add tests for array:sort
added JSON serialization tests and supporting data files (copied from parse-json tests)
Minor corrections to Lookup tests
Minor corrections and an addition to array tests
Corrections to UnaryLookup tests
Add tests for array:flatten
Minor fixes to flatten() tests