Added test coverage for array operations in Util with minor code cleanup