Added array compare for JSON Compare. Cleaned up unit tests and added util methods